package com.mall.dubbo.api;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mall.model.domain.PmsBrand;

import java.util.List;

/**
 * @author xyiaao
 * @description 针对表【pms_brand(品牌表)】的数据库操作Api
 * @createDate 2022-03-29 19:46:09
 */
public interface PmsBrandApi extends IService<PmsBrand> {

    PmsBrand findBrand(String name);

    void saveBrand(PmsBrand pmsBrand);

    void deleteBrandIds(Long[] ids);

    void deleteBrandId(Long id);

    Page<PmsBrand> queryList(String keyword, Integer pageNum, Integer pageSize);

    List<PmsBrand> listAll();

    List<PmsBrand> findBrandByids(Long[] ids);

    void updateBrand(PmsBrand brand);

    PmsBrand findBrandByid(Long id);
}
